package com.coincalf.feign.hystrix;

import com.coincalf.dto.AutoOrderDto;
import com.coincalf.feign.AutomaticOrderClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AutomaticOrderClientFallback implements AutomaticOrderClient {

    @Override
    public boolean autoOrder(AutoOrderDto autoOrderDto) {
        log.warn("自动刷单服务调用失败，链路异常 {}", autoOrderDto.toString());
        return false;
    }

}
